package cn.xiaoliu.org.mapper;

import cn.xiaoliu.basic.mapper.BaseMapper;
import cn.xiaoliu.org.domain.Employee;
import cn.xiaoliu.org.query.EmployeeQuery;

import java.util.List;

/**
 * 员工数据库操作接口
 */
public interface EmployeeMapper extends BaseMapper<Employee>{

    //1.基础的crud通过继承获取

    //2.扩展的方法需要自己写

    /**
     * 通过username等判断用户名
     * @param username
     * @return
     */
    Employee loadByUser(String username);

    /**
     * 根据LogininfoId查询employee
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);
}
